import { BASE } from '../api'
import { METHOD, request } from '@/utils/request'

/* 部门相关 */
// 新增
export async function addDept(params) {
    return request(`${BASE}/department/save`, METHOD.POST, params)
}
// 删除
export async function delDept(params) {
    return request(`${BASE}/department/del`, METHOD.POST, params)
}
// 删除
export async function delDeptList(params) {
    return request(`${BASE}/department/batchDel`, METHOD.POST, params)
}
// 修改
export async function updateDept(params) {
    return request(`${BASE}/department/update`, METHOD.POST, params)
}
// 查询列表
export async function getDeptList(params) {
    return request(`${BASE}/department/query`, METHOD.POST, params)
}

export default {
    addDept,
    delDept,
    delDeptList,
    updateDept,
    getDeptList
}